import request from '@/utils/request'
/**  获取用户信息
 *@mobile  手机号
 @code 短信验证码
*/
export const userInfo = () => request({
  method: 'GET',
  url: '/v1_0/user/profile'
})

/**  获取频道列表
*/
export const listInfo = () => request({
  method: 'GET',
  url: '/v1_0/channels'
})

/**  获取文章列表
*/
export const articles = params => request({
  method: 'GET',
  url: '/v1_0/mp/articles',
  params
})

/**  获取文章列表
*/
export const deleteArticle = target => request({
  method: 'DELETE',
  url: `/v1_0/mp/articles/${target}`
})
